package com.dcw.lixb.designmode.command;

/**
 * @author lixiaobin
 * @date 2020-07-23 16:59:38
 * @desc 描述信息
 */
public class SellOrder implements Order {
    private Stock mStock;

    public SellOrder(Stock stock) {
        mStock = stock;
    }

    @Override
    public void execute() {
        if (null != mStock) {
            mStock.sell();
        }
    }
}
